<?php
// Error reporting
error_reporting(E_ALL^E_NOTICE);

require_once("../functions/connect_to_database.php");

$color = $_POST['color'];
$project = $_POST['project'];
$cardID = $_POST['cardID'];

$query1 = sprintf("UPDATE `" . $project . "` SET color='%s' WHERE id='%s'",
					$color,$cardID);
$result = mysql_query($query1);

if(!$result){
	error_log($query.mysql_error());
	die(mysql_error());
}
echo("success");
?>